package com.hsjk.szwj.module.train.dal.mysql.fission;

import com.hsjk.szwj.framework.common.pojo.PageResult;
import com.hsjk.szwj.framework.mybatis.core.mapper.BaseMapperX;
import com.hsjk.szwj.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminEnrollCluePageReqVO;
import com.hsjk.szwj.module.train.dal.dataobject.fission.EnrollClueDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.Arrays;

@Mapper
public interface IEnrollClueMapper extends BaseMapperX<EnrollClueDO> {
    default PageResult<EnrollClueDO> selectPage(AdminEnrollCluePageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<EnrollClueDO>()
                .orderByDesc(Arrays.asList(EnrollClueDO::getCreateTime, EnrollClueDO::getCreateTime)));
    }
}
